<!DOCTYPE html>
<html lang="zn-ch">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">  
<title>坦克大战</title>
<link rel="stylesheet" href="./tank.css">
</head>
<body>
<div id="app">
<div class="title">
   <select v-model="f.wall">
       <option value="1">土墙</option>
       <option value="2">白钻</option>
       <option value="3">清除</option>
   </select>
   <span v-show="f.start>-1">{{f.start}}</span>
   <span v-show="f.end>-1">{{f.end}}</span>
   <button @click="save_map">保存地图</button>
</div>
<div class="container">
    <div class="td" 
    v-for="(v,i) in list" 
    :class="{
        orange:v.type=='tank'&&v.color==1,
        green:v.type=='tank'&&v.color==2,
        bullet:v.type=='bullet',
        wall1:v.type=='wall'&&v.color==1,
        wall2:v.type=='wall'&&v.color==2,
    }"
    @mousedown="add_wall(i)"
    >
        <div class="item"></div>
    </div>
</div>

</div>   
</body>
</html>
<script src="./static/js/vue.min.js"></script>
<script src="./static/js/fun.js"></script>
<script src="./tank.js"></script>